import QtQuick 2.0

Rectangle {
    id: root;
    color: "white";

    ClickImage {
        id: imgBack;

        anchors.fill: parent;
        fillMode: Image.PreserveAspectCrop;
        source: "png/rec/image/background.png";

        onClicked: {
            imgRocket1.x = 20
            imgRocket2.rotation = 0
            imgRocket3.rotation = 0
            imgRocket3.scale = 1.0
        }
    }

    ClickImage {
        id: imgRocket1;

        x: 20;
        y: 100;
        source: "png/rec/image/rocket.png";

        onClicked: {
            x += 5;
        }
    }

    ClickImage {
        id: imgRocket2;

        x: 220;
        y: 100;
        source: "png/rec/image/rocket.png";

        onClicked: {
            rotation += 5;
        }
    }

    ClickImage {
        id: imgRocket3;

        x: 420;
        y: 100;
        source: "png/rec/image/rocket.png";

        onClicked: {
            rotation += 5
            scale -= 0.05
        }
    }
}
